package org.dromara.system.service;

import org.dromara.system.domain.SkyPunishment;
import org.dromara.system.domain.vo.SkyPunishmentVo;
import org.dromara.system.domain.bo.SkyPunishmentBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 行政处罚Service接口
 *
 * @author Lion Li
 * @date 2024-09-20
 */
public interface ISkyPunishmentService {

    /**
     * 查询行政处罚
     */
    SkyPunishmentVo queryById(Long id);

    /**
     * 查询行政处罚列表
     */
    TableDataInfo<SkyPunishmentVo> queryPageList(SkyPunishmentBo bo, PageQuery pageQuery);

    /**
     * 查询行政处罚列表
     */
    List<SkyPunishmentVo> queryList(SkyPunishmentBo bo);

    /**
     * 新增行政处罚
     */
    Boolean insertByBo(SkyPunishmentBo bo);

    /**
     * 修改行政处罚
     */
    Boolean updateByBo(SkyPunishmentBo bo);

    /**
     * 校验并批量删除行政处罚信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    void mergeDataByCandidate(String candidate);
}
